﻿/*
 * File: Map.cs
 * Developer : Brent Larsen (brentoboy@gmail.com)
 * Date: 2011-AUG-9
 * Copyright (c) 2011 Brent Larsen.
 * Distributed under the terms of the GPL v3
 *  
 * This file is part of GenX-RPG
 * http://code.google.com/p/genx-rpg/ 
 * 
 * GenX-RPG is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * GenX-RPG is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with GenX-RPG.  If not, see <http://www.gnu.org/licenses/>.
 */


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rpg
{
    public class Map : IStep
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public int Height { get; set; }
        public int Width { get; set; }
        public int State { get; set; }

        public Dictionary<int, Tile> Tiles;
        public List<String> TileBitmapNames;

        public MapCell[,] Cells;
        public List<Portal> Portals;
        public List<Portal> AntiPortals;

        public Map(int id, string name, int width, int height)
        {
            this.Id = id;
            this.Name = name;
            this.Width = width;
            this.Height = height;

            this.Tiles = new Dictionary<int, Tile>();
            this.TileBitmapNames = new List<String>();

            this.Cells = new MapCell[this.Width, this.Height];
            this.Portals = new List<Portal>();
            this.AntiPortals = new List<Portal>();
        }
    }
}
